/**
 * 
 */
package com.QBsoft.commons.resources;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * @author aquingaluisa
 *
 */
public class WsResources {

	private static final String BUNDLE_NAME = "com.QBsoft.commons.resources.ws";
	private static ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
	
	/**
	 * Permite obtener un valor string (key)
	 * @param key
	 * @throws MissingResourceException
	 */
	public static String getString(String key) throws MissingResourceException{
		return RESOURCE_BUNDLE.getString(key);
	}
	
	/**
	 * Permite obtener un valor Integer (key)
	 * @param key
	 * @throws MissingResourceException
	 */
	public static Integer getInteger(String key) throws MissingResourceException{
		return Integer.valueOf(RESOURCE_BUNDLE.getString(key));
	}
}
